﻿using System;
using System.Collections.Generic;
using HAVNet.Core;


namespace HAVNet.Intros.AST
{
    public class ASTExprExplicitTypedLambda : ASTExpr
    {
        ASTAnonMethodParams _parameters = null;

        public object               exprBody    { get; set; }
        public ASTAnonMethodParams  parameters  { get { if (_parameters == null) _parameters = new ASTAnonMethodParams(); return _parameters; } }

        public override string ToString ()
        {
            return "(" + Lazy.toStringNN(_parameters, "") + ") => " + exprBody;
        }
    }
}
